package com.sxsy.datasource.mapper;

import com.sxsy.datasource.bean.SwjcBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface SwjcDataMapper {
    public void RtsaveNewDevkeyValue(@Param("Bm") String key,@Param("Wz") String Wz,@Param("Dw") String Dw);//从Dev文件读出新的key，更新实时表
    public void RtsaveNewSsKeyValue(@Param("Bm")String key,@Param("nValue")String Value,@Param("Date")String Date);//从实时文件中匹配到Dev文件中的新key，并把实时值更新到实时表
    public void RtdeleteRow(@Param("Bm")String key);//从实时表中删除旧的key
    public void RtupdateWz(@Param("Bm")String key,@Param("Wz")String Wz);//更新实时表中key关联的位置信息
    public void RtupdateDw(@Param("Bm")String key,@Param("Dw")String Dw);//更新实时表中key关联的单位信息
    public void HistoryTableinsert(@Param("Bm")String key,@Param("Wz")String Wz,@Param("Dw")String Dw,@Param("nValue")String Value,@Param("Date")String Date);
    public List<SwjcBean> DoesKeyExit();
}
